﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

namespace DemoSupport
{
	[ContentProperty("Demos")]
	public partial class DemoSet : UserControl
	{
		private static readonly DependencyPropertyKey _demosPropertyKey = DependencyProperty.RegisterReadOnly("Demos",
			typeof(ObservableCollection<Demo>),
			typeof(DemoSet),
			new FrameworkPropertyMetadata());

		public static readonly DependencyProperty DemosProperty = _demosPropertyKey.DependencyProperty;

		public ObservableCollection<Demo> Demos
		{
			get
			{
				return GetValue(DemosProperty) as ObservableCollection<Demo>;
			}
			private set
			{
				SetValue(_demosPropertyKey, value);
			}
		}

		public DemoSet()
		{
			InitializeComponent();
			Demos = new ObservableCollection<Demo>();
		}
	}
}
